<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>注册 - 东方美学</title>

    <link rel="stylesheet" href="../../../node_modules/bootstrap/dist/css/bootstrap.min.css">
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Pacifico&display=swap" rel="stylesheet">
    <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
    <script src="https://cdn.tailwindcss.com"></script>
    <link rel="stylesheet" href="./index.css">
    <script>
        tailwind.config = {
            theme: {
                extend: {
                    colors: {
                        primary: '#B25D1C',
                        secondary: '#D4A373'
                    },
                    borderRadius: {
                        'none': '0px',
                        'sm': '2px',
                        DEFAULT: '4px',
                        'md': '8px',
                        'lg': '12px',
                        'xl': '16px',
                        '2xl': '20px',
                        '3xl': '24px',
                        'full': '9999px',
                        'button': '4px'
                    }
                }
            }
        }
    </script>
    <style>
        body {
            background-image: url('https://ai-public.mastergo.com/ai/img_res/fa64d0d35f9fdabdeb76c7cef36177e7.jpg');
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .glass-effect {
            background: rgba(255, 255, 255, 0.8);
            backdrop-filter: blur(10px);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        }

        .input-field {
            background: rgba(255, 255, 255, 0.9);
            border: 1px solid rgba(178, 93, 28, 0.2);
            transition: all 0.3s ease;
        }

        .input-field:focus {
            border-color: #B25D1C;
            box-shadow: 0 0 0 2px rgba(178, 93, 28, 0.1);
        }

        .input-icon {
            color: #B25D1C;
        }

        .btn-primary {
            background-color: #B25D1C;
            transition: all 0.3s ease;
        }

        .btn-primary:hover {
            background-color: #C06D2C;
        }

        .social-icon {
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: all 0.3s ease;
        }

        .social-icon:hover {
            transform: translateY(-2px);
        }

        #ah .msg {
            font-size: 12px;
            position: relative;
            color: #ff4d4f;
        }
    </style>
</head>

<body class="font-sans">
    <span class="alert"></span>
    <div class="glass-effect w-[420px] p-8 rounded-xl">
        <div class="text-center mb-8">
            <h1 class="font-['Pacifico'] text-3xl text-primary mb-2">logo</h1>
            <p class="text-gray-600">欢迎注册，开启东方美学之旅</p>
        </div>

        <form class="space-y-4" id="ah">
            <div class="relative">
                <i class="fas fa-user absolute left-3 top-1/2 -translate-y-1/2 input-icon"></i>
                <input type="text" placeholder="用户名 / 手机号"
                    class="input-field w-full pl-10 pr-4 py-3 rounded-button text-sm" id="yh">
            </div>
            <span class="msg" id="m1"></span>

            <div class="relative">
                <i class="fas fa-lock absolute left-3 top-1/2 -translate-y-1/2 input-icon"></i>
                <input type="password" placeholder="请输入密码"
                    class="input-field w-full pl-10 pr-4 py-3 rounded-button text-sm" id="mm">
            </div>
            <span class="msg" id="m2"></span>

            <div class="relative">
                <i class="fas fa-lock absolute left-3 top-1/2 -translate-y-1/2 input-icon"></i>
                <input type="password" placeholder="请确认密码"
                    class="input-field w-full pl-10 pr-4 py-3 rounded-button text-sm" id="remm">
            </div>
            <span class="msg" id="m3"></span>

            <div class="flex gap-2">
                <div class="relative flex-1">
                    <i class="fas fa-shield-alt absolute left-3 top-1/2 -translate-y-1/2 input-icon"></i>
                    <input type="text" placeholder="验证码"
                        class="input-field w-full pl-10 pr-4 py-3 rounded-button text-sm" id="yzm">
                </div>
                <button type="button" class="btn-primary text-white px-4 py-2 rounded-button whitespace-nowrap"
                    id="hqyzm">
                    获取验证码
                </button>
            </div>
            <span class="msg" id="m4"></span>

            <div class="flex items-center gap-2 mt-4">
                <input type="checkbox" id="agreement" class="rounded text-primary focus:ring-primary">
                <label for="agreement" class="text-sm text-gray-600">
                    我已阅读并同意《用户协议》和《隐私政策》
                </label>
            </div>

            <button type="submit" class="btn-primary w-full text-white py-3 rounded-button text-sm font-medium"
                id="ljzc">
                立即注册
            </button>

            <div class="text-center text-sm text-gray-600">
                已有账号？<a href="../login/index.html" class="text-primary hover:text-secondary">立即登录</a>
            </div>

            <div class="mt-6">
                <div class="text-center text-sm text-gray-500 mb-4">其他登录方式</div>
                <div class="flex justify-center gap-4">
                    <a href="#" class="social-icon bg-[#07C160] text-white">
                        <i class="fab fa-weixin"></i>
                    </a>
                    <a href="#" class="social-icon bg-[#1DA1F2] text-white">
                        <i class="fab fa-qq"></i>
                    </a>
                    <a href="#" class="social-icon bg-[#E6162D] text-white">
                        <i class="fab fa-weibo"></i>
                    </a>
                </div>
            </div>
        </form>
    </div>
    <script src="https://unpkg.com/axios/dist/axios.min.js"></script>
    <script src="../../utils/alert.js"></script>
    <script src="../../utils/request.js"></script>
    <script src="./index.js"></script>
</body>

</html>